<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MD5 Hash Example</title>
    <!-- 这个库来自https://cdnjs.com/libraries/blueimp-md5 -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/blueimp-md5/2.19.0/js/md5.min.js"></script>
</head>
<body>
<input type="text" id="inputText" placeholder="Enter text">
<button onclick="getMD5()">Get MD5 Hash</button>
<p id="output"></p>

<script>
    function getMD5() {
        var inputText = document.getElementById('inputText').value;
        var hash = md5(inputText);
        document.getElementById('output').innerText = "MD5 Hash: " + hash;
    }
</script>
</body>
</html>